<%@ page import="com.atguigu.entity.Person" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        Person person = new Person();
        person.setId(100);
        person.setPhones(new String[]{"10010", "10086", "10000"});
        List<String> cities = new ArrayList<>();
        cities.add("北京");
        cities.add("上海");
        cities.add("深圳");
        cities.add("安徽");
        person.setCities(cities);
        Map<String,Object> map = new HashMap<>();
        map.put("k1","v1");
        map.put("k2","v2");
        map.put("k3","v3");
        map.put("k4","v4");
        person.setMap(map);
        request.setAttribute("p", person);
    %>
    <br>
    输出person对象：${p} <br>
    输出person.id的值：${p.id} <br>
    输出person.phones[0]的值：${p.phones[0]} <br>
    输出person.phones[1]的值：${p.phones[1]} <br>
    输出person.phones[2]的值：${p.phones[2]} <br>
    输出person.cities的值：${p.cities}<br>
    输出person.cities[0]的值：${p.cities[0]}<br>
    输出person.cities[1]的值：${p.cities[1]}<br>
    输出person.cities[2]的值：${p.cities[2]}<br>
    输出person.cities[3]的值：${p.cities[3]}<br>
    输出person.map的值：${p.map}<br>
    输出person.map.k1的值：${p.map.k1}<br>
    输出person.map.k2的值：${p.map.k2}<br>
    输出person.map.k3的值：${p.map.k3}<br>
    输出person.map.k4的值：${p.map.k4}<br>



</body>
</html>
